import * as THREE from 'three'
export class Sky {
    constructor (scene) {
        this.scene = scene
    }

    setBack (publicPath, pathList) {
        let loader = new THREE.CubeTextureLoader()
        loader.setPath(publicPath)
        loader.load(pathList, (texture) => {
            this.scene.background = texture
        })
    }
}